package com.neucollege.system.domain.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Feedback {
    @TableId(type = IdType.AUTO)
    private Integer id; // 反馈ID

    @TableField("supervisor_phone")
    private String supervisorPhone; // 监督员手机号（外键）

    @TableField("grid_province")
    private String gridProvince; // 网格省份

    @TableField("grid_city")
    private String gridCity; // 网格城市

    @TableField("estimated_aqi_level")
    private Integer estimatedAqiLevel; // 预估AQI等级

    @TableField(value = "description")
    private String description; // 描述

    @TableField("assign_worker_code")
    private String assignWorkerCode; // 指派网格员工号

    private FeedbackStatus status; // 状态（待指派/处理中/已完成）

    private LocalDateTime feedbackTime; // 反馈时间

    // 枚举类：反馈状态
    public enum FeedbackStatus {
        PENDING, PROCESSING, COMPLETED
    }
}

